package myjava.io;

import java.io.Serializable;

/**
 * @author Yancy
 * @program springioctest
 * @create 2020-11-19
 */
public class Student implements Serializable {
    private int id;
    private String name;
    private String department;

    public Student(int id, String name, String department) {
        this.id = id;
        this.name = name;
        this.department = department;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", department='" + department + '\'' +
                '}';
    }
}
